package cn.hanyx.vlog.api.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author hanyx
 * @since 2021-11-27
 */
@TableName("sca_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 增加会员积分
     */
    private Integer points;

    /**
     * 商品编码
     */
    private String goodsCode;

    /**
     * 购买数量
     */
    private Integer quantity;

    /**
     * 物品总价
     */
    private Float amount;


    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Float getAmount() {
        return amount;
    }

    public void setAmount(Float amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "Order{" +
        "orderId=" + orderId +
        ", username=" + username +
        ", points=" + points +
        ", goodsCode=" + goodsCode +
        ", quantity=" + quantity +
        ", amount=" + amount +
        "}";
    }
}
